package com.inmaytide.website.utils.configurations;

/**
 * @author luomiao
 * @since May 20, 2016
 */
public interface SystemConstants {

    public static final String PROJECT_NAME = "WebSite";

    public static final String SESSION_CURRENTUSER_KEY = "currentUser";
    public static final String SESSION_CURRENTUSER_PERMISSIONS_KEY = "rights";

    public static final String LOGIN_UNKNOWACCOUNT = "User you entered does not exist!!!";
    public static final String LOGIN_ACCOUNTLOCKED = "User is locked, Please contact the administator!!!";
    public static final String LOGIN_NOTMATCH = "Username and password do not match!!!";
    public static final String LOGOUT_SUCCESS = "Logout successed!!!";

    public static final String LOG_DEFAULT_SUCCESS_MESSAGE = "success";
    public static final String LOG_DEFAULT_FAILURE_MESSAGE = "exception";

    public static final Integer DEFAULT_PAGE_SIZE = 10;
    public static final Integer DEFAULT_PAGE_NUMBER = 1;

    /**
     * 对应deloy.properties
     */
    public interface Deploy {

        /**
         * 部署备份目录
         */
        public static final String BACKUP_DIRECTORY = "deloy.backup.directory";

    }
}
